DocumentPosition

public enum DocumentPosition

Describes how the position of the other node relates to the position of the reference node.

Entries

Link copied to clipboard

The nodes are disconnected.

Link copied to clipboard

The position of the other node precedes the position of the reference node.

Link copied to clipboard

The position of the other node follows the position of the reference node.

Link copied to clipboard

The reference node contains the other node.

Link copied to clipboard

The other node contains the reference node.

Link copied to clipboard

The node positions depend on the DOM implementation and cannot be compared.

Functions

Link copied to clipboard
public static DocumentPosition valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<DocumentPosition> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.